<?php

namespace api\controller;


use common\controller\VerifyController;
use common\service\FixDataService;
use think\Request;
use think\Response;

class FixDataController extends VerifyController
{

    protected $fixDataService;

    public function __construct()
    {
        parent::__construct();
        $this->fixDataService = FixDataService::getInstance();
    }

    /**
     * 修复原计划节点数据
     * @param Request $request
     * @return Response
     */
    public function fixCapacityPoolData(Request $request)
    {
        $param = $request->param()['param'] ?? [];
        $res = $this->fixDataService->fixCapacityPoolData($param);
        return json(success_response('ok', $res));
    }
}
